﻿using RAP.Framework.Libary.DomTemplateBuilder.Attributes;
using RAP.Framework.Libary.DomTemplateBuilder.Handler;
using RAP.Framework.Libary.Utils;

namespace RAP.Framework.Libary.DomTemplateBuilder.Element
{
	/// <summary>
	/// 抛出一个错误信息
	/// </summary>
	[TagHandler( typeof( ThrowErrorHandler ) )]
    public class ThrowError : ElementBase
    {
        /// <summary>
        /// 错误编码
        /// </summary>
        public int ErrorCode
        {
            get
            {
                return this.ToInt32( nameof( ErrorCode ), -9999 );
            }
        }
    }
}
